package resource;

import com.MySpring6.bean.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import resource.controller.UserController;

public class TestUserController {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("bean.xml");
        UserController userController = (UserController) context.getBean("myUserController");
        userController.add();
    }
}
